<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>logico.iABJ.LogicoABJ</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;logico ::
        <a href="logico.iABJ-module.html">Module&nbsp;iABJ</a> ::
        Class&nbsp;LogicoABJ
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="logico.iABJ.LogicoABJ-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class LogicoABJ</h1><p class="nomargin-top"><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ">source&nbsp;code</a></span></p>
<p>Esta clase representa el controlador en el MVC del proyecto ABJ.</p>

<hr />
<div class="fields">      <p><strong>Since:</strong>
        4/14/2011
      </p>
      <p><strong>Version:</strong>
        1.0
      </p>
</div><!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#genIntGramaticaKeywords" class="summary-sig-name">genIntGramaticaKeywords</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">term_rep</span>)</span><br />
      Generador de la gramatica a partir de un archivo XML de entrada</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.genIntGramaticaKeywords">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#lexer" class="summary-sig-name">lexer</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">lexemas</span>)</span><br />
      Generador de la gramatica</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.lexer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#parser" class="summary-sig-name">parser</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tokens</span>)</span><br />
      Parser</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.parser">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#ejecucionSemantica" class="summary-sig-name">ejecucionSemantica</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">subArbol</span>,
        <span class="summary-sig-arg">lexemas</span>)</span><br />
      Metodo para verificar coherencia y ejecutar la instruccion solicitada</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.ejecucionSemantica">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#matchRegEx" class="summary-sig-name">matchRegEx</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">str</span>)</span><br />
      Regresa el nombre del regex con el cual hay match</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.matchRegEx">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#matchKw" class="summary-sig-name">matchKw</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">str</span>)</span><br />
      Verifica si str es un keyword</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.matchKw">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#nodificar" class="summary-sig-name">nodificar</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">subArbol</span>,
        <span class="summary-sig-arg">lexemas</span>,
        <span class="summary-sig-arg">siguiente_indice</span>)</span><br />
      Hace un recorrido enOrden sobre el arbol para cambiar terminales 
      (str) por Nodos</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.nodificar">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#comparaGenero" class="summary-sig-name">comparaGenero</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">comparando1</span>,
        <span class="summary-sig-arg">comparando2</span>)</span><br />
      Regresa True si ambos comparandos poseen el mismo genero, False en 
      caso contrario</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.comparaGenero">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#errorGenero" class="summary-sig-name">errorGenero</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">articulo</span>,
        <span class="summary-sig-arg">sustantivo</span>)</span><br />
      Devuelve el enunciado del error de genero entre articulo y sustantivo</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.errorGenero">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#runCommand" class="summary-sig-name">runCommand</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">str_command</span>)</span><br />
      Metodo de comunicaci&#243;n entre la parte l&#243;gica y gr&#225;fica</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.runCommand">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="logico.iABJ.LogicoABJ-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">terminales</span>,
        <span class="summary-sig-arg">nombre_heroe</span>)</span><br />
      Constructor</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_gramString"></a><span class="summary-name">_gramString</span> = <code title="None">None</code><br />
      Variable que contiene la gramatica generada a partir de los XML de 
      terminales
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_diccionario"></a><span class="summary-name">_diccionario</span> = <code title="None">None</code><br />
      ???
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_keywords"></a><span class="summary-name">_keywords</span> = <code title="None">None</code><br />
      Listado de keywords
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="logico.iABJ.LogicoABJ-class.html#_sinonimos" class="summary-name" onclick="show_private();">_sinonimos</a> = <code title="None">None</code><br />
      Diccionario de sinonimos.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="logico.iABJ.LogicoABJ-class.html#_genero" class="summary-name" onclick="show_private();">_genero</a> = <code title="None">None</code><br />
      Diccionario de generos.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="logico.iABJ.LogicoABJ-class.html#_articulo" class="summary-name" onclick="show_private();">_articulo</a> = <code title="None">None</code><br />
      Diccionario de articulos.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_gramatica"></a><span class="summary-name">_gramatica</span> = <code title="None">None</code><br />
      Objeto del NLTK para contener la gramatica procesada.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_rd_parser"></a><span class="summary-name">_rd_parser</span> = <code title="None">None</code><br />
      Objeto del NLTK para representar el parser descendente de la 
      gramatica generada.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_problema"></a><span class="summary-name">_problema</span> = <code title="None">None</code><br />
      Objeto logico que representa el problema a correr.
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_heroe"></a><span class="summary-name">_heroe</span> = <code title="None">None</code><br />
      Referencia al Heroe del problema
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="logico.iABJ.LogicoABJ-class.html#_direccion" class="summary-name" onclick="show_private();">_direccion</a> = <code title="{'adelante': [0, 1],
 'atras': [0, -1],
 'derecha': [1, 0],
 'izquierda': [-1, 0]}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">adelante</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>0<code class="variable-op">, </code>1<code class="variable-group">]</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">atras</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>0<code class="variable-op">, </code>-1<code class="variable-group">]</code><code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">derecha</code><code class="variable-quote">'</code><code class="variable-op">:</code><code class="variable-ellipsis">...</code></code><br />
      Direcciones basicas de movimiento
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_longitud"></a><span class="summary-name">_longitud</span> = <code title="{'mucho': 10, 'poco': 3, 'todo': 30}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">mucho</code><code class="variable-quote">'</code><code class="variable-op">: </code>10<code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">poco</code><code class="variable-quote">'</code><code class="variable-op">: </code>3<code class="variable-op">, </code><code class="variable-quote">'</code><code class="variable-string">todo</code><code class="variable-quote">'</code><code class="variable-op">: </code>30<code class="variable-group">}</code></code><br />
      Interpretaciones basicas de cantidad
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="_logAction"></a><span class="summary-name">_logAction</span> = <code title="1">1</code><br />
      ??????
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="genIntGramaticaKeywords"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">genIntGramaticaKeywords</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">term_rep</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.genIntGramaticaKeywords">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Generador de la gramatica a partir de un archivo XML de entrada</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>term_rep</code></strong> (string) - URL relativa del archivo de terminales a leer</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="lexer"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">lexer</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">lexemas</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.lexer">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Generador de la gramatica</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>lexemas</code></strong> (list) - lista de strings que representan los valores lexicograficos de 
          los tokens encontrados durante el analises.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="parser"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">parser</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">tokens</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.parser">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Parser</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>tokens</code></strong> (list) - lista de los nombres de los tokens encontrados en el analisis 
          lexico</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="ejecucionSemantica"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">ejecucionSemantica</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">subArbol</span>,
        <span class="sig-arg">lexemas</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.ejecucionSemantica">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Metodo para verificar coherencia y ejecutar la instruccion 
  solicitada</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>subArbol</code></strong> (Nodo) - Nodo padre del subarbol a analizar / ejecutar</li>
        <li><strong class="pname"><code>lexemas</code></strong> (list) - listado de los valores lexicograficos encontrados de la entrada 
          por el lexer.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="matchRegEx"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">matchRegEx</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">str</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.matchRegEx">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Regresa el nombre del regex con el cual hay match</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>str</code></strong> (string) - valor a comparar contra el conjunto de expresiones regulares.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="matchKw"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">matchKw</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">str</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.matchKw">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Verifica si str es un keyword</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>str</code></strong> (string) - valor a comparar contra el conjunto de keywords.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="nodificar"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">nodificar</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">subArbol</span>,
        <span class="sig-arg">lexemas</span>,
        <span class="sig-arg">siguiente_indice</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.nodificar">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Hace un recorrido enOrden sobre el arbol para cambiar terminales (str)
  por Nodos</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>subArbol</code></strong> (Nodo) - Nodo padre del subarbol a nodificar</li>
        <li><strong class="pname"><code>lexemas</code></strong> (list) - listado de los valores lexicograficos encontrados de la entrada 
          por el lexer.</li>
        <li><strong class="pname"><code>siguiente_indice</code></strong> (int) - valor numerico a asignar al siguiente Nodo (posicion en el 
          listado de tokens de la entrada original)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="comparaGenero"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">comparaGenero</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">comparando1</span>,
        <span class="sig-arg">comparando2</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.comparaGenero">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Regresa True si ambos comparandos poseen el mismo genero, False en 
  caso contrario</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>comparando1</code></strong> (string) - string ya sea terminal o token</li>
        <li><strong class="pname"><code>comparando2</code></strong> (string) - string ya sea terminal o token</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="errorGenero"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">errorGenero</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">articulo</span>,
        <span class="sig-arg">sustantivo</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.errorGenero">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Devuelve el enunciado del error de genero entre articulo y 
  sustantivo</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>articulo</code></strong> (string) - articulo a comparar (articulo en el sentido gramatical: el la los
          las, etc)</li>
        <li><strong class="pname"><code>sustantivo</code></strong> (string) - sustantivo a comparar contra articulo</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="runCommand"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">runCommand</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">str_command</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.runCommand">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Metodo de comunicaci&#243;n entre la parte l&#243;gica y gr&#225;fica</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>str_command</code></strong> (string) - representacion en lenguaje ABJ del comando a ejecutar.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">terminales</span>,
        <span class="sig-arg">nombre_heroe</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="logico.iABJ-pysrc.html#LogicoABJ.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Constructor</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>self</code></strong> (LogicoABJ) - referencia al objeto LogicoABJ actual</li>
        <li><strong class="pname"><code>terminales</code></strong> (string) - URL relativa del XML de terminales a usar en la ejecucion del 
          programa</li>
        <li><strong class="pname"><code>nombre_heroe</code></strong> (string) - nombre del Heroe, para desplegar en un apartado posteriormente.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
<a name="section-ClassVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="_sinonimos"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_sinonimos</h3>
  <p>Diccionario de sinonimos. Terminal --&gt; Terminal Generatriz</p>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
None
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_genero"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_genero</h3>
  <p>Diccionario de generos. Terminal --&gt; genero</p>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
None
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_articulo"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_articulo</h3>
  <p>Diccionario de articulos. ?????????</p>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
None
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="_direccion"></a>
<div class="private">
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">_direccion</h3>
  <p>Direcciones basicas de movimiento</p>
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
<code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">adelante</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>0<code class="variable-op">, </code>1<code class="variable-group">]</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">atras</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>0<code class="variable-op">, </code>-1<code class="variable-group">]</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">derecha</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>1<code class="variable-op">, </code>0<code class="variable-group">]</code><code class="variable-op">,</code>
 <code class="variable-quote">'</code><code class="variable-string">izquierda</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-group">[</code>-1<code class="variable-op">, </code>0<code class="variable-group">]</code><code class="variable-group">}</code>
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Fri Apr 15 08:38:33 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
